package cn.seaboot.admin.image;

/**
 * cmd 命令执行结果
 *
 * @author Mr.css
 * @version 2022-07-21 10:16
 */
public class CommandResult {
    /**
     * 运行结果码
     */
    private int code;
    /**
     * 控制台输出日志信息
     */
    private String data;

    public CommandResult(int code, String data) {
        this.code = code;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ExecuteResult{" +
                "code=" + code +
                ", data='" + data + '\'' +
                '}';
    }
}
